<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Исходный файл acfg.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
<h1>acfg.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">** $Id: acfg.h,v 1.120 2007/03/17 11:12:35 leader Exp $</span>
<a name="l00003"></a>00003 <span class="comment">**</span>
<a name="l00004"></a>00004 <span class="comment">** Header file of the Ananas configuration objects of Ananas</span>
<a name="l00005"></a>00005 <span class="comment">** Designer and Engine applications</span>
<a name="l00006"></a>00006 <span class="comment">**</span>
<a name="l00007"></a>00007 <span class="comment">** Created : 20031201</span>
<a name="l00008"></a>00008 <span class="comment">**</span>
<a name="l00009"></a>00009 <span class="comment">** Copyright (C) 2003-2004 Leader InfoTech.  All rights reserved.</span>
<a name="l00010"></a>00010 <span class="comment">** Copyright (C) Andrey Paskal &lt;app at lrn dot ru&gt;, Yoshkar-Ola</span>
<a name="l00011"></a>00011 <span class="comment">** Copyright (C) 2003-2005 Grigory Panov &lt;gr1313 at mail dot ru &gt;, Yoshkar-Ola</span>
<a name="l00012"></a>00012 <span class="comment">**</span>
<a name="l00013"></a>00013 <span class="comment">** This file is part of the Library of the Ananas</span>
<a name="l00014"></a>00014 <span class="comment">** automation accounting system.</span>
<a name="l00015"></a>00015 <span class="comment">**</span>
<a name="l00016"></a>00016 <span class="comment">** This file may be distributed and/or modified under the terms of the</span>
<a name="l00017"></a>00017 <span class="comment">** GNU General Public License version 2 as published by the Free Software</span>
<a name="l00018"></a>00018 <span class="comment">** Foundation and appearing in the file LICENSE.GPL included in the</span>
<a name="l00019"></a>00019 <span class="comment">** packaging of this file.</span>
<a name="l00020"></a>00020 <span class="comment">**</span>
<a name="l00021"></a>00021 <span class="comment">** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE</span>
<a name="l00022"></a>00022 <span class="comment">** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00023"></a>00023 <span class="comment">**</span>
<a name="l00024"></a>00024 <span class="comment">** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru</span>
<a name="l00025"></a>00025 <span class="comment">** See http://www.leaderit.ru/gpl/ for GPL licensing information.</span>
<a name="l00026"></a>00026 <span class="comment">**</span>
<a name="l00027"></a>00027 <span class="comment">** Contact org@leaderit.ru if any conditions of this licensing are</span>
<a name="l00028"></a>00028 <span class="comment">** not clear to you.</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">**********************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">/*</span>
<a name="l00033"></a>00033 <span class="comment">Ananas configuration objects.</span>
<a name="l00034"></a>00034 <span class="comment">(c) 2004 Leader InfoTech</span>
<a name="l00035"></a>00035 <span class="comment">*/</span>
<a name="l00036"></a>00036 <span class="preprocessor">#ifndef ACFG_H</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define ACFG_H</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "ananasglobal.h"</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;qdom.h&gt;</span>
<a name="l00042"></a>00042 <span class="comment">//#include &lt;qdict.h&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;qintdict.h&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include "acfgrc.h"</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="preprocessor">#ifdef __BORLANDC__</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#define CHECK_POINT     printf("%s:%i %s()\n",__FILE__,__LINE__,__FUNC__);</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#define CHECK_POINT     printf("%s:%i %s()\n",__FILE__,__LINE__,__FUNCTION__);</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">extern</span> void (*cfg_messageproc)(int , <span class="keyword">const</span> <span class="keywordtype">char</span> *);
<a name="l00054"></a>00054 <span class="keywordtype">void</span> ANANAS_EXPORT cfg_message(<span class="keywordtype">int</span> msgtype, <span class="keyword">const</span> <span class="keywordtype">char</span> *msgfmt,...);
<a name="l00055"></a>00055 <span class="keywordtype">void</span> ANANAS_EXPORT debug_message(<span class="keyword">const</span> <span class="keywordtype">char</span> *msgfmt,...);
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="keyword">class </span>QObject;
<a name="l00058"></a>00058 
<a name="l00063"></a>00063 <span class="preprocessor">#define RC_OK           0       </span>
<a name="l00064"></a>00064 <span class="preprocessor">#define RC_ERROR        1       </span>
<a name="l00069"></a>00069 <span class="preprocessor">#define mdc_unknown             0       </span>
<a name="l00070"></a>00070 <span class="preprocessor">#define mdc_root                1       </span>
<a name="l00071"></a>00071 <span class="preprocessor">#define mdc_info                2       </span>
<a name="l00072"></a>00072 <span class="preprocessor">#define mdc_interface           3       </span>
<a name="l00073"></a>00073 <span class="preprocessor">#define mdc_metadata            4       </span>
<a name="l00074"></a>00074 <span class="preprocessor">#define mdc_globals             5       </span>
<a name="l00075"></a>00075 <span class="preprocessor">#define mdc_actions             6       </span>
<a name="l00077"></a>00077 <span class="preprocessor">//#define mdc_documents 6       </span>
<a name="l00078"></a>00078 <span class="preprocessor">//#define mdc_catalogues        7       </span>
<a name="l00079"></a>00079 <span class="preprocessor">//#define mdc_iregisters        8       </span>
<a name="l00080"></a>00080 <span class="preprocessor">//#define mdc_aregisters        9       </span>
<a name="l00081"></a>00081 <span class="preprocessor">//#define mdc_reports           10      </span>
<a name="l00082"></a>00082 <span class="preprocessor">//#define mdc_journals          11      </span>
<a name="l00087"></a>00087 <span class="preprocessor">#define md_root                 "ananas_configuration"</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor">#define md_interface            "interface"</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 <span class="preprocessor">#define md_info                 "info"</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#define md_info_name            "name"</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="preprocessor">#define md_info_author          "author"</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span><span class="preprocessor">#define md_info_date            "date"</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#define md_info_mdate           "mdate"</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor">#define md_info_remark          "remark"</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor">#define md_info_lastid          "lastid"</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="comment">//#define md_info_dir           "dir"</span>
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="preprocessor">#define md_metadata             "metadata"      </span>
<a name="l00100"></a>00100 <span class="preprocessor">#define md_globals              "globals"</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#define md_languages            "languages"</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#define md_language             "language"</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor">#define md_aliases              "aliases"</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span><span class="preprocessor">#define md_alias                "alias"</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span><span class="preprocessor">#define md_roles                "roles"</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span><span class="preprocessor">#define md_role                 "role"</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#define md_description          "description"</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#define md_sourcecode           "sourcecode"</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#define md_servermodule         "server_module"</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#define md_clientmodule         "client_module"</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#define md_formsource           "form_source"</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#define md_menutext             "menutext"</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor">#define md_argument             "argument"</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a>00115 <span class="preprocessor">#define md_documents            "documents"</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor">#define md_document             "document"</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span>
<a name="l00118"></a>00118 <span class="preprocessor">#define md_catalogues           "catalogues"</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#define md_catalogue            "catalogue"</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor">#define md_element              "element"</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor">#define md_group                "group"</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span>
<a name="l00123"></a>00123 <span class="preprocessor">#define md_string_view          "string_view"</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#define md_svfunction           "svfunction"</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span>
<a name="l00126"></a>00126 <span class="preprocessor">#define md_registers            "registers"</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#define md_iregisters           "iregisters"</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#define md_iregister            "iregister"</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#define md_aregisters           "aregisters"</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#define md_aregister            "aregister"</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span>
<a name="l00132"></a>00132 <span class="preprocessor">#define md_reports              "reports"</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#define md_report               "report"</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00135"></a>00135 <span class="preprocessor">#define md_journals             "journals"</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#define md_journal              "journal"</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#define md_columns              "columns"</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span><span class="preprocessor">#define md_column               "column"</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor">#define md_used_doc             "used_doc"</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span><span class="preprocessor">#define md_fieldid              "fieldid"</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span>
<a name="l00142"></a>00142 <span class="preprocessor">#define md_field                "field"</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#define md_forms                "forms"</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor">#define md_form                 "form"</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span><span class="preprocessor">#define md_defaultmod           "defaultmod"</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span><span class="preprocessor">#define md_webforms             "webforms"</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span><span class="preprocessor">#define md_webform              "webform"</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span><span class="preprocessor">#define md_formdesign           "dialogform"</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span>
<a name="l00150"></a>00150 <span class="preprocessor">#define md_tables               "tables"</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor">#define md_table                "table"</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span><span class="preprocessor">#define md_header               "header"</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span>
<a name="l00154"></a>00154 <span class="preprocessor">#define md_resources            "resources"</span>
<a name="l00155"></a>00155 <span class="preprocessor"></span><span class="preprocessor">#define md_dimensions           "dimensions"</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="preprocessor">#define md_information          "information"</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span>
<a name="l00161"></a>00161 <span class="preprocessor">#define md_actions              "actions"</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span><span class="preprocessor">#define md_actiongroup          "actiongroup"</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span><span class="preprocessor">#define md_action               "action"</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span><span class="preprocessor">#define md_objectid             "objectid"</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span><span class="preprocessor">#define md_formid               "formid"</span>
<a name="l00166"></a>00166 <span class="preprocessor"></span><span class="preprocessor">#define md_actiontype           "actiontype"</span>
<a name="l00167"></a>00167 <span class="preprocessor"></span><span class="preprocessor">#define md_active_picture       "active_picture"</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span><span class="preprocessor">#define md_passive_picture      "passive_picture"</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span>
<a name="l00173"></a>00173 <span class="preprocessor">#define md_interface            "interface"</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span><span class="preprocessor">#define md_toolbars             "toolbars"</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span><span class="preprocessor">#define md_toolbar              "toolbar"</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span><span class="preprocessor">#define md_popupmenus           "popupmenus"</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span><span class="preprocessor">#define md_popupmenu            "popupmenu"</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor">#define md_mainmenu             "mainmenu"</span>
<a name="l00179"></a>00179 <span class="preprocessor"></span><span class="preprocessor">#define md_submenu              "submenu"</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span><span class="preprocessor">#define md_command              "command"</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span><span class="preprocessor">#define md_comaction            "comaction"</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span><span class="preprocessor">#define md_separator            "separator"</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span><span class="preprocessor">#define md_key                  "key"</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span><span class="preprocessor">#define md_menutext             "menutext"</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span><span class="comment">//key modifiers</span>
<a name="l00186"></a>00186 <span class="preprocessor">#define md_km_ctrl              "Ctrl+"</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor">#define md_km_alt               "Alt+"</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span><span class="preprocessor">#define md_km_shift             "Shift+"</span>
<a name="l00189"></a>00189 <span class="preprocessor"></span>
<a name="l00190"></a>00190 <span class="preprocessor">#define md_image_collection     "image_collection"</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span><span class="preprocessor">#define md_image                "image"</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
<a name="l00193"></a>00193 
<a name="l00197"></a>00197 <span class="preprocessor">#define mda_name                "name"</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span><span class="preprocessor">#define mda_id                  "id"</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span><span class="preprocessor">#define mda_type                "type"</span>
<a name="l00200"></a>00200 <span class="preprocessor"></span><span class="preprocessor">#define mda_readonly            "readonly"</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#define mda_lang                "lang"</span>
<a name="l00202"></a>00202 <span class="preprocessor"></span><span class="preprocessor">#define mda_nz                  "nz"</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span><span class="preprocessor">#define mda_sort                "sort"</span>
<a name="l00204"></a>00204 <span class="preprocessor"></span><span class="preprocessor">#define mda_no_unconduct        "no_unconduct"</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span><span class="preprocessor">#define mda_plus                "plus"</span>
<a name="l00206"></a>00206 <span class="preprocessor"></span><span class="preprocessor">#define mda_sum                 "sum"</span>
<a name="l00207"></a>00207 <span class="preprocessor"></span><span class="preprocessor">#define mda_tag                 "tag"</span>
<a name="l00208"></a>00208 <span class="preprocessor"></span><span class="preprocessor">#define mda_trfile              "trfile"</span>
<a name="l00209"></a>00209 <span class="preprocessor"></span><span class="preprocessor">#define mda_length              "length"</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span><span class="preprocessor">#define mda_format              "format"</span>
<a name="l00211"></a>00211 <span class="preprocessor"></span><span class="preprocessor">#define mda_stdf                "stdf"</span>
<a name="l00212"></a>00212 <span class="preprocessor"></span><span class="preprocessor">#define mda_rights              "rights"</span>
<a name="l00213"></a>00213 <span class="preprocessor"></span>
<a name="l00218"></a>00218 <span class="preprocessor">#define md_action_new           0</span>
<a name="l00219"></a>00219 <span class="preprocessor"></span><span class="preprocessor">#define md_action_edit          1</span>
<a name="l00220"></a>00220 <span class="preprocessor"></span><span class="preprocessor">#define md_action_view          2</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span><span class="preprocessor">#define md_action_execute       3</span>
<a name="l00222"></a>00222 <span class="preprocessor"></span>
<a name="l00228"></a>00228 <span class="preprocessor">#define md_form_nouse           0</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor">#define md_form_new             1</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span><span class="preprocessor">#define md_form_view            2</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span><span class="preprocessor">#define md_form_edit            3</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span><span class="preprocessor">#define md_form_select          4</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span>
<a name="l00234"></a>00234 
<a name="l00239"></a>00239 <span class="preprocessor">#define md_form_elem_list       0</span>
<a name="l00240"></a>00240 <span class="preprocessor"></span><span class="preprocessor">#define md_form_elem            1</span>
<a name="l00241"></a>00241 <span class="preprocessor"></span><span class="preprocessor">#define md_form_group           2</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>
<a name="l00243"></a>00243 
<a name="l00248"></a>00248 <span class="preprocessor">#define md_systemjournal        1</span>
<a name="l00249"></a>00249 <span class="preprocessor"></span><span class="preprocessor">#define md_aregarhive           2</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>
<a name="l00251"></a>00251 <span class="comment">//class aCfg;</span>
<a name="l00252"></a>00252 <span class="comment">//extern aCfg cfg;</span>
<a name="l00253"></a>00253 
<a name="l00254"></a>00254 <span class="preprocessor">#define ERR_Code int</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span>
<a name="l00256"></a>00256 <span class="preprocessor">#define err_unknown             -1//some ote error</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span><span class="preprocessor">#define err_noerror             0// result successful</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span><span class="preprocessor">#define err_notable             1// no table with such name</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span><span class="preprocessor">#define err_objnotfound         2// no such object in metadata</span>
<a name="l00260"></a>00260 <span class="preprocessor"></span><span class="preprocessor">#define err_incorrecttype       3// object has othe metadata id</span>
<a name="l00261"></a>00261 <span class="preprocessor"></span><span class="preprocessor">#define err_uidnotfound         4// no such id in unicues</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span><span class="preprocessor">#define err_notselected         5// select return nothing</span>
<a name="l00263"></a>00263 <span class="preprocessor"></span><span class="preprocessor">#define err_nodatabase          6// database is not inited</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span><span class="preprocessor">#define err_selecterror         7// select return some error</span>
<a name="l00265"></a>00265 <span class="preprocessor"></span><span class="preprocessor">#define err_condition           8// error in condition</span>
<a name="l00266"></a>00266 <span class="preprocessor"></span><span class="preprocessor">#define err_noobject            9// aObject didn't init md object</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor">#define err_nosysjournal        10// system journal not inited</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span><span class="preprocessor">#define err_inserterror         11// insert in aSQLTable return false</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span><span class="preprocessor">#define err_execerror           12// exec return false</span>
<a name="l00270"></a>00270 <span class="preprocessor"></span><span class="preprocessor">#define err_updateerror         13// update reutrn false</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#define err_abstractobj         14// you need to use hi level object or specimen of object</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span><span class="preprocessor">#define err_fieldnotfound       15// no filed with such name</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span><span class="preprocessor">#define err_copyerror           16// object don't copy</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span><span class="preprocessor">#define err_nocatalogue         17// catalogue not found</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span><span class="preprocessor">#define err_nogroup             18// group not found</span>
<a name="l00276"></a>00276 <span class="preprocessor"></span><span class="preprocessor">#define err_deleteerror         19// object don't deleted or don't mark deleted</span>
<a name="l00277"></a>00277 <span class="preprocessor"></span><span class="preprocessor">#define err_nodocument          20// no such document</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span><span class="preprocessor">#define err_emptyperiod         21// you try close empty period</span>
<a name="l00279"></a>00279 <span class="preprocessor"></span><span class="preprocessor">#define err_noresources         22// the register object have no resources tag in metadata</span>
<a name="l00280"></a>00280 <span class="preprocessor"></span><span class="preprocessor">#define err_incorrectname       23// object have incorrect name</span>
<a name="l00281"></a>00281 <span class="preprocessor"></span><span class="preprocessor">#define err_closeperiod         24// close period error</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span><span class="preprocessor">#define err_conducterror        25// error when document conducting</span>
<a name="l00283"></a>00283 <span class="preprocessor"></span><span class="preprocessor">#define err_docconducted        26// you can't change conducted document or conduct document once more</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span><span class="preprocessor">#define err_docunconducted      27// you can unconduct document if it not conducted</span>
<a name="l00285"></a>00285 <span class="preprocessor"></span><span class="preprocessor">#define err_cyclereparent       28//you have cycle when try reparent</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span><span class="preprocessor">#define err_readonly            29//object is readonly</span>
<a name="l00287"></a>00287 <span class="preprocessor"></span><span class="preprocessor">#define err_invaliddate         30// invalid date or datetime specified</span>
<a name="l00288"></a>00288 <span class="preprocessor"></span><span class="preprocessor">#define err_nodimensions        31// the register object have no dimensions tag in metadata</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span><span class="preprocessor">#define err_nowidgetfound       32// there is no such widget in form</span>
<a name="l00290"></a>00290 <span class="preprocessor"></span>
<a name="l00291"></a>00291 <span class="preprocessor">#define md_user_roles           "userroles"</span>
<a name="l00292"></a>00292 <span class="preprocessor"></span><span class="preprocessor">#define md_users                "users"</span>
<a name="l00293"></a>00293 <span class="preprocessor"></span><span class="preprocessor">#define md_user                 "user"</span>
<a name="l00294"></a>00294 <span class="preprocessor"></span><span class="preprocessor">#define md_usr_role             "u_role"</span>
<a name="l00295"></a>00295 <span class="preprocessor"></span><span class="preprocessor">#define md_roles                "roles"</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span><span class="preprocessor">#define md_role                 "role"</span>
<a name="l00297"></a>00297 <span class="preprocessor"></span><span class="preprocessor">#define md_rl_users             "r_users"</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span><span class="preprocessor">#define md_rl_user              "r_user"</span>
<a name="l00299"></a>00299 <span class="preprocessor"></span><span class="preprocessor">#define md_right_roles          "rroles"</span>
<a name="l00300"></a>00300 <span class="preprocessor"></span>
<a name="l00301"></a>00301 <span class="preprocessor">#define perm_read               0</span>
<a name="l00302"></a>00302 <span class="preprocessor"></span><span class="preprocessor">#define perm_execute            1</span>
<a name="l00303"></a>00303 <span class="preprocessor"></span><span class="preprocessor">#define perm_create             2</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span><span class="preprocessor">#define perm_delete             3</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span><span class="preprocessor">#define perm_turn_on            4</span>
<a name="l00306"></a>00306 <span class="preprocessor"></span><span class="preprocessor">#define perm_turn_off           5</span>
<a name="l00307"></a>00307 <span class="preprocessor"></span><span class="preprocessor">#define perm_admin              6</span>
<a name="l00308"></a>00308 <span class="preprocessor"></span>
<a name="l00309"></a>00309 <span class="preprocessor">#define aPermission             int</span>
<a name="l00310"></a>00310 <span class="preprocessor"></span>
<a name="l00311"></a>00311 <span class="preprocessor">#define aCfgItem                QDomElement</span>
<a name="l00312"></a>00312 <span class="preprocessor"></span>
<a name="l00313"></a>00313 
<a name="l00314"></a>00314 
<a name="l00327"></a><a class="code" href="classaCfgItemContaner.html">00327</a> <span class="keyword">class </span>ANANAS_EXPORT <a class="code" href="classaCfgItemContaner.html" title="Контейнер для элемента метаданных бизнес схемы...">aCfgItemContaner</a>: <span class="keyword">public</span> QObject
<a name="l00328"></a>00328 {
<a name="l00329"></a>00329 <span class="keyword">public</span>:
<a name="l00330"></a>00330     <span class="keywordtype">long</span> id;
<a name="l00331"></a>00331     aCfgItem item;
<a name="l00332"></a>00332     <a class="code" href="classaCfgItemContaner.html" title="Контейнер для элемента метаданных бизнес схемы...">aCfgItemContaner</a>(<span class="keywordtype">long</span> newid, aCfgItem newitem);
<a name="l00333"></a>00333 };
<a name="l00334"></a>00334 
<a name="l00335"></a>00335 <span class="comment">/*</span>
<a name="l00336"></a>00336 <span class="comment">class ANANAS_EXPORT  aCfgFieldType: public QObject</span>
<a name="l00337"></a>00337 <span class="comment">{</span>
<a name="l00338"></a>00338 <span class="comment">public:</span>
<a name="l00339"></a>00339 <span class="comment">        QString name, type;</span>
<a name="l00340"></a>00340 <span class="comment">        aCfgFieldType( const QString &amp;newname, const QString &amp;newtype);</span>
<a name="l00341"></a>00341 <span class="comment">        aCfgFieldType( aCfgItem newitem );</span>
<a name="l00342"></a>00342 <span class="comment">};</span>
<a name="l00343"></a>00343 <span class="comment">*/</span>
<a name="l00344"></a>00344 
<a name="l00345"></a>00345 
<a name="l00346"></a>00346 
<a name="l00356"></a><a class="code" href="classAMetadataObject.html">00356</a> <span class="keyword">class </span>ANANAS_EXPORT  <a class="code" href="classAMetadataObject.html" title="Объект метаданных для обеспечения доступа из...">AMetadataObject</a>: <span class="keyword">public</span> QObject
<a name="l00357"></a>00357 {
<a name="l00358"></a>00358 Q_OBJECT
<a name="l00359"></a>00359 <span class="keyword">public</span>:
<a name="l00360"></a>00360         <a class="code" href="classAMetadataObject.html" title="Объект метаданных для обеспечения доступа из...">AMetadataObject</a>( aCfgItem newitem );
<a name="l00361"></a>00361 <span class="keyword">public</span> slots:
<a name="l00362"></a>00362         QString Class();
<a name="l00363"></a>00363 <span class="keyword">private</span>:
<a name="l00364"></a>00364         aCfgItem item;
<a name="l00365"></a>00365 };
<a name="l00366"></a>00366 
<a name="l00367"></a>00367 
<a name="l00368"></a>00368 
<a name="l00383"></a><a class="code" href="classaCfg.html">00383</a> <span class="keyword">class </span>ANANAS_EXPORT <a class="code" href="classaCfg.html" title="Класс реализует програмный интерфейс доступа...">aCfg</a>: <span class="keyword">public</span> QObject <span class="comment">//QDomDocument</span>
<a name="l00384"></a>00384 {
<a name="l00385"></a>00385     Q_OBJECT
<a name="l00386"></a>00386 
<a name="l00387"></a>00387 <span class="keyword">public</span>:
<a name="l00388"></a>00388     <span class="keyword">enum</span> fieldType { ftUnknown, ftChar, ftNumberic, ftDate, ftObject };
<a name="l00389"></a>00389     <a class="code" href="classaCfgRc.html">aCfgRc</a> rc;
<a name="l00390"></a>00390 
<a name="l00391"></a>00391     <a class="code" href="classaCfg.html" title="Класс реализует програмный интерфейс доступа...">aCfg</a>();
<a name="l00392"></a>00392     ~<a class="code" href="classaCfg.html" title="Класс реализует програмный интерфейс доступа...">aCfg</a>();
<a name="l00393"></a>00393 
<a name="l00394"></a>00394     <span class="keywordtype">int</span> read(<span class="keyword">const</span> QString &amp;fname);
<a name="l00395"></a>00395     <span class="keywordtype">int</span> write(<span class="keyword">const</span> QString &amp;fname);
<a name="l00396"></a>00396     <span class="keywordtype">int</span> write(QDomDocument doc, <span class="keyword">const</span> QString &amp;fname);
<a name="l00397"></a>00397     <span class="keywordtype">int</span> readrc(<span class="keyword">const</span> QString &amp;fname);
<a name="l00398"></a>00398     <span class="keywordtype">int</span> writerc(<span class="keyword">const</span> QString &amp;fname);
<a name="l00399"></a>00399     <span class="keywordtype">bool</span> compressed();
<a name="l00400"></a>00400     <span class="keywordtype">void</span> setCompressed( <span class="keywordtype">bool</span> mode );
<a name="l00401"></a>00401     <span class="keywordtype">bool</span> modified();
<a name="l00402"></a>00402     <span class="keywordtype">void</span> setModified( <span class="keywordtype">bool</span> mode );
<a name="l00403"></a>00403 <span class="comment">//    void print();</span>
<a name="l00404"></a>00404     <span class="keywordtype">void</span> createNew();
<a name="l00405"></a>00405 
<a name="l00406"></a>00406     QString info(<span class="keyword">const</span> QString &amp;name);
<a name="l00407"></a>00407     <span class="keywordtype">void</span> setInfo(<span class="keyword">const</span> QString &amp;name, <span class="keyword">const</span> QString &amp;value);
<a name="l00408"></a>00408 
<a name="l00409"></a>00409     <span class="keywordtype">long</span> getId( QString &amp;name );
<a name="l00410"></a>00410     <span class="keywordtype">long</span> id(aCfgItem context);
<a name="l00411"></a>00411 
<a name="l00412"></a>00412     QString objClass( <span class="keywordtype">long</span> <span class="keywordtype">id</span> );
<a name="l00413"></a>00413     QString objClass( aCfgItem context );
<a name="l00414"></a>00414 
<a name="l00415"></a>00415     <span class="keywordtype">int</span> count(aCfgItem context, <span class="keyword">const</span> QString &amp;classname);
<a name="l00416"></a>00416     <span class="keywordtype">int</span> countChild(aCfgItem context, <span class="keyword">const</span> QString &amp;classname = QString::null );
<a name="l00417"></a>00417 
<a name="l00418"></a>00418     QString attr(aCfgItem context, <span class="keyword">const</span> QString &amp;name);
<a name="l00419"></a>00419     <span class="keywordtype">void</span> setAttr(aCfgItem context, <span class="keyword">const</span> QString &amp;name, <span class="keyword">const</span> QString &amp;value);
<a name="l00420"></a>00420     <span class="keywordtype">void</span> setAttr(aCfgItem context, <span class="keyword">const</span> QString &amp;name, <span class="keywordtype">int</span> value);
<a name="l00421"></a>00421 
<a name="l00422"></a>00422     QString text(aCfgItem context);
<a name="l00423"></a>00423     <span class="keywordtype">void</span> setText(aCfgItem context, <span class="keyword">const</span> QString &amp;value );
<a name="l00424"></a>00424     QByteArray binary( aCfgItem context );
<a name="l00425"></a>00425     <span class="keywordtype">void</span> setBinary( aCfgItem context, <span class="keyword">const</span> QByteArray &amp;value, <span class="keyword">const</span> QString &amp;format = QString::null );
<a name="l00426"></a>00426     QString binaryFormat( aCfgItem context );
<a name="l00427"></a>00427     QString sText(aCfgItem context, <span class="keyword">const</span> QString &amp; subname );
<a name="l00428"></a>00428     <span class="keywordtype">void</span> setSText(aCfgItem context, <span class="keyword">const</span> QString &amp; subname, <span class="keyword">const</span> QString &amp;value);
<a name="l00429"></a>00429 
<a name="l00430"></a>00430     aCfgItem find(aCfgItem context, <span class="keyword">const</span> QString &amp;name, <span class="keywordtype">int</span> n = 0 );
<a name="l00431"></a>00431     aCfgItem find(<span class="keywordtype">long</span> <span class="keywordtype">id</span>);
<a name="l00432"></a>00432     aCfgItem find(<span class="keyword">const</span> QString &amp;name);
<a name="l00433"></a>00433     aCfgItem findChild(aCfgItem context, <span class="keyword">const</span> QString &amp;classname, <span class="keywordtype">int</span> n = 0 );
<a name="l00434"></a>00434     aCfgItem findName(aCfgItem context, <span class="keyword">const</span> QString &amp;classname, <span class="keyword">const</span> QString &amp;name = QString::null );
<a name="l00435"></a>00435 
<a name="l00436"></a>00436     <span class="keywordtype">bool</span> swap( aCfgItem &amp;item1, aCfgItem &amp;item2);
<a name="l00437"></a>00437     <span class="keywordtype">int</span> order( aCfgItem item );
<a name="l00438"></a>00438     aCfgItem parent( aCfgItem context );
<a name="l00439"></a>00439     aCfgItem firstChild( aCfgItem context );
<a name="l00440"></a>00440     aCfgItem lastChild( aCfgItem context );
<a name="l00441"></a>00441     aCfgItem nextSibling( aCfgItem context );
<a name="l00442"></a>00442     aCfgItem previousSibling( aCfgItem context );
<a name="l00443"></a>00443 
<a name="l00444"></a>00444     aCfgItem insert(aCfgItem context, <span class="keyword">const</span> QString &amp;otype, <span class="keyword">const</span> QString &amp;name = QString::null, <span class="keywordtype">long</span> <span class="keywordtype">id</span> = 0);
<a name="l00445"></a>00445         <span class="keywordtype">int</span>             saveOneObject(aCfgItem context, <span class="keyword">const</span> QString &amp;fileName);
<a name="l00446"></a>00446         aCfgItem        loadOneObject(<span class="keyword">const</span> QString &amp;fileName);
<a name="l00447"></a>00447     <span class="keywordtype">void</span> <span class="keyword">remove</span>(aCfgItem context);
<a name="l00448"></a>00448 
<a name="l00449"></a>00449     aCfgItem importCfgItem( aCfgItem context,  aCfgItem obj );
<a name="l00450"></a>00450     <span class="keywordtype">void</span> setupNewId( aCfgItem obj );
<a name="l00451"></a>00451 
<a name="l00452"></a>00452     QStringList types( <span class="keyword">const</span> QString &amp;filter = QString::null, aCfgItem *obj = 0 );
<a name="l00453"></a>00453     QStringList ObjectTypes();
<a name="l00454"></a>00454 
<a name="l00455"></a>00455     <span class="comment">// Hi level functions.</span>
<a name="l00456"></a>00456     aCfgItem insertDocument( <span class="keyword">const</span> QString &amp;name );
<a name="l00457"></a>00457     aCfgItem insertDocumentTable(aCfgItem owner, <span class="keyword">const</span> QString &amp;name );
<a name="l00458"></a>00458     aCfgItem insertCatalogue( <span class="keyword">const</span> QString &amp;name );
<a name="l00459"></a>00459     aCfgItem insertIRegister ( <span class="keyword">const</span> QString &amp;name );
<a name="l00460"></a>00460     aCfgItem insertARegister ( <span class="keyword">const</span> QString &amp;name );
<a name="l00461"></a>00461     aCfgItem insertJournal ( <span class="keyword">const</span> QString &amp;name );
<a name="l00462"></a>00462     aCfgItem insertReport ( <span class="keyword">const</span> QString &amp;name );
<a name="l00463"></a>00463     aCfgItem insertField( aCfgItem owner, <span class="keyword">const</span> QString &amp;section, <span class="keyword">const</span> QString &amp;name,<span class="keyword">const</span> QString &amp;ftype );
<a name="l00464"></a>00464     aCfgItem insertForm( aCfgItem owner, <span class="keyword">const</span> QString &amp;name );
<a name="l00465"></a>00465     aCfgItem insertWebForm( aCfgItem owner, <span class="keyword">const</span> QString &amp;name );
<a name="l00466"></a>00466 
<a name="l00467"></a>00467     <span class="keywordtype">long</span> getDefaultFormId( aCfgItem owner, <span class="keywordtype">int</span> actiontype, <span class="keywordtype">int</span> mode =0 );
<a name="l00468"></a>00468     QStringList getJournalDocuments( aCfgItem journal );
<a name="l00469"></a>00469     aCfgItem findJournal(<span class="keywordtype">int</span> jtype, aCfgItem doc);
<a name="l00470"></a>00470     QStringList objTables( aCfgItem obj );
<a name="l00471"></a>00471     QStringList objTables( <span class="keywordtype">int</span> objid );
<a name="l00472"></a>00472     aCfgItem objTable( aCfgItem obj, <span class="keywordtype">int</span> <span class="keywordtype">id</span> );
<a name="l00473"></a>00473     aCfgItem objTable( <span class="keywordtype">int</span> objid, <span class="keywordtype">int</span> <span class="keywordtype">id</span> );
<a name="l00474"></a>00474 
<a name="l00475"></a>00475 <span class="keyword">public</span> slots:
<a name="l00476"></a>00476     QString Info( QString partname );
<a name="l00477"></a>00477 
<a name="l00478"></a>00478 signals:
<a name="l00479"></a>00479         <span class="keywordtype">void</span> message( <span class="keywordtype">int</span> messageType, <span class="keyword">const</span> QString &amp; messageText );
<a name="l00480"></a>00480 
<a name="l00481"></a>00481 <span class="keyword">private</span>:
<a name="l00482"></a>00482     QDomDocument xml;
<a name="l00483"></a>00483     <span class="keywordtype">bool</span> fCompressed, fModified;
<a name="l00484"></a>00484     <span class="comment">//  QDomElement root;</span>
<a name="l00485"></a>00485     aCfgItem rootnode, cfginfo, md,
<a name="l00486"></a>00486     iface,
<a name="l00487"></a>00487     actions;
<a name="l00488"></a>00488     QIntDict &lt;aCfgItemContaner&gt; idcache;
<a name="l00489"></a>00489     <span class="keywordtype">long</span> nextID();
<a name="l00490"></a>00490     <span class="keywordtype">void</span> init();
<a name="l00491"></a>00491 
<a name="l00492"></a>00492     <span class="keywordtype">void</span> addTypes( QStringList &amp;list, aCfgItem context, <span class="keyword">const</span> QString &amp;tobject, <span class="keyword">const</span> QString &amp;tname);
<a name="l00493"></a>00493 };
<a name="l00494"></a>00494 
<a name="l00495"></a>00495 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:14 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
